<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.1/showdown.min.js"></script>
<!--    <link rel="stylesheet" href="src/styles/default.css"/>-->
<!--    <script src="src/highlight.js"></script>-->

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/styles/default.min.css">
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.1/highlight.min.js"></script>

<!--    <link rel="stylesheet" href="styles/github.css"/>-->
<!--    <script src="highlight.pack.js"></script>-->

        <link rel="stylesheet" href="highlight/styles.css"/>
        <script src="highlight/highlight.site.pack.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js"></script>
</head>
<body>
<div>

            <textarea id="oriContent" style="height:400px;width:600px;" onkeyup="convert()">
指定boot2docker镜像

### 指定镜像创建
```
docker-machine.exe create --driver virtualbox --virtualbox-boot2docker-url=boot2docker.iso default
```

### 删除虚拟机
```
docker-machine.exe rm default
```

### 运行虚拟机
```java
docker-machine.exe env default
```

```java
public static void main(){
                String a="hello";
            }
                ```


    </textarea>

    <div id="result"></div>

    <div id="snippet">
            <pre><code class="hljs java language-java">public static void main(){
                String a="hello";
            }</code></pre>
        <pre>
            <code class="hljs bash language-bash">
                ; boilerplate
[package]
name = "some_name"
authors = ["Author"]
description = "This is \
a description"

[[lib]]
name = ${NAME}
default = True
auto = no
counter = 1_000
            </code>
        </pre>
    </div>
        </div>
        </body>

        <script type="text/javascript">
            //https://blog.csdn.net/qq_33440246/article/details/78698936
            //https://highlightjs.org/
        function convert(){
            var text = document.getElementById("oriContent").value;

            var converter = new showdown.Converter();
            var html = converter.makeHtml(text);
            document.getElementById("result").innerHTML = html;
            hljs.initHighlightingOnLoad();
        }
        $(function (){
            console.log("hello")
            hljs.initHighlightingOnLoad();

            // let snippet = document.querySelector('#snippet pre code');
            // hljs.highlightBlock(snippet);
        });
</script>

</html>